package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Category;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/24
 */
public interface CategoryService extends IService<Category> {
    boolean saveCategory(Category category);
    Page<Category> getCategoryByPage(Integer page, Integer pageSize);
    boolean removeCategoryById(Long id);
    void removeCategoryByIdPlus(Long id);
    Category queryCategoryById(Long id);
    boolean editCategory(Category category);
    List<Category> getCategoryList(Category category);
}
